package com.example.integral;

import android.graphics.Color;
import android.util.TypedValue;
import android.widget.TextView;

/**
 * Created by esalazar on 7/4/13.
 */
public class HeaderView  extends TextView {

    public HeaderView(android.content.Context context, String text) {
        super(context);
        this.setText(text);
        this.setTypeface(null, 1);
        this.setTextSize(15);
        int dip = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                (float) 1, getResources().getDisplayMetrics());
        //this.setWidth(180 * dip);
        this.setPadding(100 * dip, 0, 0, 0);
        this.setBackgroundColor(RowView.color);
    }
}